﻿function prepareAccufindTaggingInfoView(rawTagString, tagDelimiter, targetHTMLElement) {
    var AllAccufindTaggingInfoTags = new Array();
    $(rawTagString.split(tagDelimiter)).each(function (i, val) {
        AllAccufindTaggingInfoTags.push(val.trim());
    });

    $(targetHTMLElement).tagit({
        //readOnly: true,
        availableTags: AllAccufindTaggingInfoTags,
        allowSpaces: true,
        autocomplete: { delay: 0, minLength: 1 },
        showAutocompleteOnFocus: true,
        singleFieldDelimiter: tagDelimiter
    });
}